Fix utils method and improving it