update to avoid bugs in old browsers