errors in logick