remove some undesirable bits:/