added more browser compatibility