changed uuid function for shorter IDs