finished a lot of indel debuging