added constants, migrated snippets