added ref id field to model