fixing a dependency issue with a forward declared function