updated name table to store {str,Element}