working on logic1