if extrafeatures is undefined use an empty array