set up relationships
fixed indexes