got the x,y displacement basically working