noise blob filtering and bug fixing