remove $this from closure for php 5.3 support