added a updatedimensions, and fixed some serial duplication