array push pop works