added second resolution to prontab and simplified code