fixed errors in model 8 and model 9