improved compatibility with older browsers