example cleaned up