add initfeature and endfeature
endfeature amended