making options into hash