simplier logic