added compare_normalized function to utils