realized that samplepoint and spacialbin are inter-dependent, moved to one file