changes bevore upload