fixed name of function in options