bit of code not needed any more