added a check for the method accessible arguments in the with method