clarified make_text function with if statments