handle both scenarios