added some wp8 code