moved auto-generated method repo to its own class