refactored module for the repositories