accurate usage of closure