getting rid of unused function compiler errors