two cubes comparison added