converting to awestruct