removing some extra bits