partially fixed - i do not understand yet the reason for the transpose