trying to splitsource code to multiple data for encapsulation