changed input into network