1 is subtracted from both values to get them in the range 0