fixing fillin function