fixed bug where we instantiated a list as a default method arg, and fixed unchecked index