wraped model in function to provide access to sol