equals in funcs now finally works!