now working correctly in firefox