remove unnecessary run statements