added error element console log