edited to use position property rather than x and y :)