better solutuion for region features,stil w.i.p.