init cube same way as from file, bug fix in tmp var name