fixed extra $ in variables