updated conversion rates with if-else control flow