restructure (2)
remove black bar detection