debugged snippets