add debug statements for store functions