added a better error message.