snapshot of some code