removed some log statements and swapped package quantity back to int