more work w.r.t foreignkeys.