commit before changing from ArrayList to Array