added boolean state for turnaround