changed display size to global var