writing goal cleanup