changed checking bytes