removed the closure generator method