maybe break the next couple lines into its own method?