refactor elements that have no value with new base class