replaced function covered by Apache