problems with fillup
changes to fill,write, read