fixed fill function (added new)