model code fixed!