change how to use smarty variables