better error statement for parameter assignment failure
doc of compat module