weights added, works fine, no memory leak