correct implementation of cttz but still bugs somewhere else which needs to be fixed as the test case crashes