removes unnecessary block