correct repository and repository_code