what is the main purpose of equity in law