fixed up a couple of broken functions