clean vars and code