functions to modify sources