added the chunk.java changes