x coordinates was miscalculated