changed type of values X,Y to float and changed getters and setters