changed the signature of the create fucntion