work in progress: debugging algorithm that guesses weights