finished ban log code