finished algorithmic portion, analysis next time