modify solution so that it actually uses the CODES file