fixed bug with negatives