almost completed calculations