input and output for field