removed useless function block