simple working margin detect