fixing a couple errors