fixing messed up template