changed the reset index to -1