changed everything by reference