SPOT value outputted after optimization

removed some redundant code