add logic fixed.