cleaning up hillclimbing spike; fixed bug in wtf function