working on adding parse rule to handle applications
added parse rule to handle application in the parse function