added some byte classification functions