moving functions back in Chunk