remove cube/emit and references