updated to use instnce ID instead of Name