updated points code