trying to use beautify fill right after calculating scanfill

it segfaults though, a bit clueless on where to go