generating model now updates context