source code done on CCTVAL