simple function to return values