finished function prototype parsing function