get better performance using Object.create