using Object.getOwnProperties