remove unneeded kwargs dictionaries