make endpoints() result unique