fixed negitive numbers bug