fix for emacs 24
update for emacs24