replacing patchprogram with render program