now smith is called in the compute function