Cube logic improved