making Profile compatible with older compilers