declare var as local