second test with weights -- not quite correct weights though