fixed errors with concatination and comparison of different cost features