before upload cleaned