add comment
change indent
add calc_delta_n