moved methods to splotch.cpp