adding smarty