fix closure syntax for 5.3