beware of my ugly math