translated some hardcoding into constants