remove unnecessary options