fixed a few bad logic.  still not rendering