return string intead of prints