changed method b