better byte pattern gen