change to draw function

passes _x and _y parameters instead of static values