fixed parser, first approach to routine