added option to normalize features