made variable local