This is done in the an optimum ways, i