remove anonymous function so works on php < 5.3