gave functions more descriptive names