repo using models