remove some error_log and some code not needed