mkt spotted some mistakes and i forgot to export the var