push and print methods are modified