update for smarty