function declaration and call fully working up to parser