sample function to handle inter_features normalization