added logic to compute wheel position