refactor points renderer