removing uncalled functions