change the equal funtion for functions