updates to ormmodel