modify to fit the lower version of sdk