editing; removing curry; function declarations;other ballast