Accounted for offset and ivnerted y values for xy coordinates