use of final class helper function