fixed relationship code flow