add java transpose comparison