prototype complete, clearing old code to give it another go