update some hardcoded sizes to variables