added writefloatlock