making major changes with functions