fixed compare sequence