make some arguments const