removed extra write functions
Hack for FF (#6)