compatible with ie8 (otherwise known as the bane of my existance)