message storing and input