updated error messages to give more clarity