Revert "remove private functions from .h"

This reverts commit dcc1a7cd4f9559a3359ce6b6bde3270585b14bce.