update cuber
final version of code