reading in, functions and arguments