removing unneeded templates