fixing the create method