working analyze method with empty hash