fixing trailing comma error