fix hardcoded resolution