added some bit related stuff