added browser compatability