bug fix for update part of parser. passed all junit tests