solved issue with negative values