simplified transitions code