function call parses properly and is added to tree