updated usCongress.script using array accesses and ternary operator