removed needless variable
add long run mechanism and use it from visiting root