clean inputs
add version 3