update to work in firefox