simple improvement to showData