ensure we have return statements for functions