added two inputs