improved error message when method signature is duplicated