folder reorganization
updateScatter helper function