done with master code for points