removed things that doesn't belong to the template