changed inputs functionality
complete B functionality, currently set for changed inputs