updating new, push, pop, shift
fixing spec bugs