closure comipler works