implemented assign array for argument. bug fixed