fixing intancing programs