modelling done moving on to writing api