fixing but with complex key