removing some unneeded bits