modified display.c for shrinking array size