minor changes

attempted threading and failed