inital parse function added