remove log and err catching