change 'outputs' to 'layers' in runinput function - better naming