journal version of earlier paper