add a line for error
delete a snippet