"points" and "sub" should be consts