• thanks for a useful function, saved me a lot of time recently