changed pass by ref for all method calls involving Package_t