transform to expected format