move private method out of scope