use specified variable instead of hardcode