initialize tagsList earlier. I think it's not working correctly