to stack directory