push method changed with array index