change to unexported function