set proper location to lambda for do-end block