spruced up input and output