open newly generated file
remove warnings by add explicit return types