improving browser compatibility