remove log function