before making score array