solved several problems