bug fixes after testing actual adjustment