throw exception for unused arguments