remove double assignment of the PositionManager
remove unused imports