updated script for generating and fetching triple weights