emulated hardware cubics used in visualisations
removed debug output