removing unrequired options