apply changes A (improvements)