* some utils functions