removes useless options