fixing bugs regarding bit order