slight improvement to initialization of the closure