commenting and adjustment to get status function