fixed the old type (is it?), and changed the symbol reference to function reference
added a test