make sure bytes is defined