divide into blocks