after deleting some instn files to just implement the way described in the paper