code cleaning: remove useless function