added placeholde for opt_f = f, removed free(c)
tmp commit