helper from const to var