passing the background text to check for errors