finish robot code