modified input wrapper