functions instead of hard-code variables