switch to Object.create instead of Object.freeze