add logic explan