updated snippets; added mapping;