printing out check, push, pop