add max, remove and square files