deleted testing related codes for applyFeatures