removed final printf to profile