removed const' were values were added (eg. norm_res function)