revert type to []int