working on forward fitting