added back in some x-y positioning code