capture class bytes