value calculation largely finished