modified show method