added modular cubes attempt