cleaned up code; downcased status strings