moved input to seperate files