moved modelling related functions