add 0.5 to make plotting more accurate