fix problem where data kept incrementing the same number