added x,y functions.