removed useless code block