changed minSdkVersion from 8 to 9