previous work with some testing code, not needed