program improvement codes -- WORKING!!!