work on model ref