remove unnecessary lambda body