fixed compare thing