added push and pop to array