tom - fixing variable with wrong name