change const to var (windows complained)