changed method for getting max bid