changed variable definition on suggestion of example42