added memory to bill script