added parse() and removed some lines