make elem a little bit smarter