fixing negative numbers