extract utils method close #37