imporve smarty syntax