do_perfect = "False" if session and ms