modified way to get keywords