refactor to methodC