revise the fuction to convey const strings