complete element.cc (by stealing some work of mfs)