Removing undefined arguments