local variable seek_time referenced before assignment. fixed