close the camp Tab and finish the dup func