name typo
dumb, procedural version working