added protection for when no points are available