add in rescue for generate name