extracting transitions into a sperate module