calculated everything