fixed set compare fucntion arguments