you could create a custom type that contains your two variables and return that type