modify cash dictionary implementation