changed the way of averaging: now getting Jos values from the book