digit removed from cost function