added refs in models