compare fun is working