fixing error with optparse