correcting model length