add overlap threshold for fg and bg