improved the parser
corrected memory dependencies