add error checking in the configuration in case input probs dont add to unity.