debug: do not increment position of self when inserting stack
delete some unused lines