added stuff to giveinventorty method