corrected hasMany relationships