added write line to update class