updated gc1_refactored.js