changed the 'in' keyword to .hasOwnProperty for the associative arrays, ... it seemed to improve performance