new functions; formatting with igor-mode in emacs