added writefloatlock 2