attempt to fix position logic