fixed unused functions