added getters for x and y