found a couple errors and fixed them