simple the logic