changed variable names to avoid reserved word conflict