cleaning up mean model definition