do not use array methods that modify indexes