first version of position solver