quick fix var not passed