-updated the code to run from sdk 10.06 to 10.1