remove unnecessary snippet