extracting options