update constructor class.