switch through acceptable format types