some snippets for er3