make closure work for parameters