snippet callback added.