need to normalize the inputs to 0 and 1