moved a function into utils