wrapping option in if