added discrete x and y coordinate