remove duplicate outputs