new method for result class