algorithm implemented, mostly working, but still no content