added functionality to parser