apply smarty