ask logic