update samples7 and 22