implementing interative fill
merge done