created simplified version without emacs