added new method for parsing