fix bracket array being overwritten and adding color array