closure to use $