remove unnecessary function name checks