remove first declaration of twice-defined method