eliminated unneeded anonymous function