threshold modified, to depend on effort/cost function