debug
added error mesg