solve one-shot problem