change hasMany to hasone in model location