updated vk id generation algorithm