resize of file