fixed script to work with the skeleton of only sample data