begin element coding [untested]