fix some functions that weren't returning values