changed BSD license to Apache 2.0 license