using smarty