working instance_including gayathri's changes