input from memory