modification for clang compiler