control cube cache in GPU added, now fixing a bug