added solution for CTS