made somewhat unique id fn somewhat better