remove duplicated utility method