remove unused id and span