remove compiler-dependent complex code