working on some logical errors after a few test drafts