renamed takeInputWithLeftoversD to takeInputD, hide previous takeInputD as takeInputD'