adding legacy browser support