broken version of code so martin can help debug