preparing to integrate createVoxel function