ensure sec is always positive