modified function input