updating to match phptemplate