intensity term debugging

need to check if it is correctly implemented