add method which returns temp string