fixed negative number error