added 3D coordinate gen for smiles