moves methods to Repository