added amount verification to parser