improved frame byte construction