bug ?? in chunk--> rewrite