LD-60 correct logic auto generated function