working on the position based controller