update program to support Logic substance