try getting points from views function