bugfix: replace unused variable 'data' with 'input'