repair generic method error