create private method for model