generating jog uid - improves in code after code review