fixed weight =1 problem
added small script to run