made display work properly