compare 2 fn