initial working thing
clean up from old method