fixed problem with negatives