cleaning up junk templates