add custom type object to avoid probmels with mongo.