finish acc and log entity