switch name to id, elements turn to element