use intp instead of int for size, etc.