In this paper, we study the generating functions for the number of visible levels in compositions of n and set partitions of [n]