put a if to check if copy is done