program modified to prevent functions from being counted