split util method into separate module