remove unnecessary do block