debug removed and values changed to weights