update cube implementation