correctly compare the values, better func name