refactored samplemap to be a static instance