parser: for interger and a flag trigger for elements