progress trying to get logic to compile