added writeout for featuremap