updated to use extend instead of create