did some modifications with emacs for practice