Updated write
rename float to write