added setter and getter to model generation