fix to make compatible for cc < 2.0