resized quadrants and changed shadow_threshold