added type checkin in assignment