added support for older browsers