print out memory