implemented TC0 handler