added createfromC