fixed important bug inside parse() method