[#9] file body logic moved to another method