trying to resolve display discrepancies , cleaning up code