modified kstack to have unique space