corrected wrong typing