finish option testing code