removing unneeded prefixes