add array pop and get