changed str to float for x and y