remove unnecessary block