discretionary powers of the court