logic and async solved