correction on flavias script for counting