expanded to two branches, but would have liked a cleaner approach using just chainLink