embedded code is producing error message