adjusted the code to reflect the changes with attribute record; setting values for featureid was superflous as the createfeature already does this