margin solution