made variables local