removed an unessecary parameter from the cabin state check function