add type to result