logic end