removed useless closure function