Electronic structure of transition metal compounds