use variable for display resolution