it is supposed to be a boolean parameter, not a pointer to a function

thanks Zuu!