reorganizing files by function