dir update(1)
added dynamic allocation for vector1