offset func to utils