changes to work on firefox