to avoid repeated calls to the closure