consolidated the return values in a class