change features to array