making result set unique