pushOntoArray implemented