remove arguments where they are not needed