function and variable formatting
function change when clearing header