got rid of unneeded bits