changed to work on firefox