localizing vars