chopped out now-redundant stuff in script; cube works