remove unused args and kwargs