finish all function emptied