added another check for the keywords function.