check display size
remove unused var to prevent warning