optimize select and table justify