fixed error in showing weights the problem was both were reading input variable etc