added some functions and worked on isolation crit