Removing unneeded lambda