modify reverse input