resolves two scenarios