update to use unboxed type; fix #2