change comment
read ids from features, fix index increment and range check