A remark on normal forms of matrices