added model_size function
starting dynamic lp size