fixed indents. fixed bug preventing costvaluefinder from finding values