error ending code snippet