moved general methods in a specific model