deleted some obsolete code.