removing some unnecessary bits