1.9 compatibility, use lambda instead of ->