smalloc added