finish each block