resized block code