make sure that the hasOwnProperty filter wraps the for in loop.