cleaned code: extracted constants