frame advancement shortcut using modulus