https://www.el7arf.com/2019/11/logical-primary.html