added parsing for typed functions